package com.naodong.shenluntiku.mvp.model.bean;

import com.google.gson.annotations.Expose;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by hujie on 17/5/10.
 * 题目详情实体
 */

public class SubjectInfo implements Serializable {

    private int uSubId;//评测题目ID

    private int uIsCorrect;//是否回答正确
    private List<Integer> uChooseIds;//作答的选项ID，用英文逗号隔开
    private int subId;//题目ID
    @Expose(serialize = false)
    private String subCon;//题目内容
    @Expose(serialize = false)
    private String subDatum;//材料Html
    @Expose(serialize = false)
    private String subExplain;//解析HTML

    private int subAvgCorrectRate;//平均正确率
    @Expose(serialize = false)
    private String subFallibility;//易错项
    @Expose(serialize = false)
    private List<SubjectOption> subOptions;//选项
    @Expose(serialize = false)
    private List<String> subAbilities;//考点、能力
    private int subChoiceType;//1 单选 10多选

    @Expose(deserialize = false,serialize = false)
    private boolean isCollect;//是否收藏了

    public boolean isCollect() {
        return isCollect;
    }

    public void setCollect(boolean collect) {
        isCollect = collect;
    }

    public int getSubChoiceType() {
        return subChoiceType;
    }

    public void setSubChoiceType(int subChoiceType) {
        this.subChoiceType = subChoiceType;
    }

    public List<String> getSubAbilities() {
        return subAbilities;
    }

    public void setSubAbilities(List<String> subAbilities) {
        this.subAbilities = subAbilities;
    }

    public int getuSubId() {
        return uSubId;
    }

    public void setuSubId(int uSubId) {
        this.uSubId = uSubId;
    }

    public int getuIsCorrect() {
        return uIsCorrect;
    }

    public void setuIsCorrect(int uIsCorrect) {
        this.uIsCorrect = uIsCorrect;
    }

    public List<Integer> getuChooseIds() {
        if (uChooseIds == null) {
            uChooseIds = new ArrayList<>();
        }
        return uChooseIds;
    }

    public void setuChooseIds(List<Integer> uChooseIds) {
        this.uChooseIds = uChooseIds;
    }

    public int getSubId() {
        return subId;
    }

    public void setSubId(int subId) {
        this.subId = subId;
    }

    public String getSubCon() {
        return subCon;
    }

    public void setSubCon(String subCon) {
        this.subCon = subCon;
    }

    public String getSubDatum() {
        return subDatum;
    }

    public void setSubDatum(String subDatum) {
        this.subDatum = subDatum;
    }

    public String getSubExplain() {
        return subExplain;
    }

    public void setSubExplain(String subExplain) {
        this.subExplain = subExplain;
    }

    public int getSubAvgCorrectRate() {
        return subAvgCorrectRate;
    }

    public void setSubAvgCorrectRate(int subAvgCorrectRate) {
        this.subAvgCorrectRate = subAvgCorrectRate;
    }

    public String getSubFallibility() {
        return subFallibility;
    }

    public void setSubFallibility(String subFallibility) {
        this.subFallibility = subFallibility;
    }

    public List<SubjectOption> getSubOptions() {
        return subOptions;
    }

    public void setSubOptions(List<SubjectOption> subOptions) {
        this.subOptions = subOptions;
    }
}
